#include "StateManager.h"

StateManager::StateManager()
{
	m_pkState = NULL;
}

StateManager::~StateManager()
{
}

void StateManager::ChangeState( State *pkState )
{
	if( m_pkState != NULL )
	{
		delete m_pkState;
		m_pkState = NULL;
	}

	m_pkState = pkState;
}

void StateManager::Release()
{
	if( m_pkState != NULL )
		delete m_pkState;

	m_pkState = NULL;
}
